import BackGround from './runtime/background';
import Button from './runtime/button';

const canvas = tt.createCanvas();
const ctx = canvas.getContext('2d');

class Home {
  bg = new BackGround(canvas);
  btn = new Button(canvas);

  constructor() {
    this.render();
  }

  render() {
    ctx.clearRect(0, 0, canvas.width, canvas.height);
    this.bg.render(ctx);
    this.btn.render(ctx);
  }
}

export default Home;